package main

import (
	"github.com/BitTraceProject/BitTrace-Resolver/server"
	"github.com/BitTraceProject/BitTrace-Types/pkg/config"
)

func main() {
	conf := config.ResolverMgrConfig{
		MetaServerAddr: "127.0.0.1:8081",
		ResolverConfig: config.ResolverConfig{
			MetaServerAddr: "127.0.0.1:8081",
			MqServerAddr:   "127.0.0.1:8082",
			DatabaseConfig: config.DatabaseConfig{
				Address:  "localhost:33061",
				Username: "admin",
				Password: "admin",
			},
		},
	}
	s := server.NewResolverMgrServer("127.0.0.1:8083", conf)
	s.Run()
}
